package com.ld.control.business.record.vo.resp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 任务报错后的记录和处理
 * </p>
 *
 * @author wangfeng
 * @since 2024-05-13
 */
@Data
@Schema(description = "任务报错后的记录和处理")
public class ErrorNoticeRecordRespVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "process_node_example_running主键id")
    private Long processNodeExampleRunningId;

    @Schema(description = "任务实例code")
    private String taskExampleCode;

    @Schema(description = "任务实例名称")
    private String taskExampleName;

    @Schema(description = "子任务实例名称")
    private String subTaskExampleName;

    @Schema(description = "流程实例名称")
    private String processExampleName;

    @Schema(description = "节点实例名称")
    private String processNodeExampleName;

    @Schema(description = "设备名称")
    private String equipmentName;

    @Schema(description = "状态：0未处理，1已处理")
    private Integer status;

    @Schema(description = "处理方式：0跳过，1重试")
    private Integer handleType;

    @Schema(description = "错误编码")
    private String errorCode;

    @Schema(description = "错误描述")
    private String errorMsg;

    @Schema(description = "错误详细信息")
    private String errorInfo;

    @Schema(description = "创建时间")
    private Date createTime;

}
